package com.gyh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gyh.entity.Course;
import com.gyh.vo.CourseVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CourseMapper extends BaseMapper<Course> {
    List<Course> getAll();

    List<Course> selectLatestCourses();

    List<Course> selectPopularCourses();

    List<Course> selectComprehensiveCourses();
    Course selectById(Integer id);

    List<CourseVo> selectCourseAndStatus(Integer mid);
}
